import request from '@/utils/request'

// 获取出入数据
export function traffic_record_get_list(token, data) {
  return request({
    url: 'access/traffic_record/get_list',
    method: 'post',
    params: { token },
    data
  })
}

// 获取考勤报表数据
export function employee_attendance_interval_get_list(token, data) {
  return request({
    url: 'access/employee_attendance_interval/get_list',
    method: 'post',
    params: { token },
    data
  })
}

// 获取考勤汇总数据
export function employee_attendance_get_list(token, data) {
  return request({
    url: 'access/employee_attendance/get_list',
    method: 'post',
    params: { token },
    data
  })
}

// 获取考勤时间段获取
export function service_trafficList(token, data) {
  return request({
    url: 'access/service/trafficList',
    method: 'post',
    params: { token },
    data
  })
}

// 获取加班汇总数据
export function employee_overtime_get_list(token, data) {
  return request({
    url: 'access/employee_overtime/get_list',
    method: 'post',
    params: { token },
    data
  })
}

// 获取加班报表数据
export function employee_overtime_worker_get_list(token, data) {
  return request({
    url: 'access/employee_overtime_worker/get_list',
    method: 'post',
    params: { token },
    data
  })
}

// 获取导出考勤报表数据 无分页
export function employee_attendance_interval_get_select(token, data) {
  return request({
    url: 'access/employee_attendance_interval/get_select',
    method: 'post',
    params: { token },
    data
  })
}

// 获取导出考勤汇总数据 无分页
export function employee_attendance_get_select(token, data) {
  return request({
    url: 'access/employee_attendance/get_select',
    method: 'post',
    params: { token },
    data
  })
}

// 获取导出加班数据 无分页
export function employee_overtime_worker_get_select(token, data) {
  return request({
    url: 'access/employee_overtime_worker/get_select ',
    method: 'post',
    params: { token },
    data
  })
}

// 获取所有数据
export function service_summaryAll(token, data) {
  return request({
    url: 'access/service/summaryAll ',
    method: 'post',
    params: { token },
    data
  })
}
